Skip to content

feat: adding network request overrides#2371

Open
marco-prontera wants to merge 1 commit into
ChromeDevTools:mainfrom
marco-prontera:feat/network-request-overrides
Open

feat: adding network request overrides#2371
marco-prontera wants to merge 1 commit into
ChromeDevTools:mainfrom
marco-prontera:feat/network-request-overrides

Conversation

@marco-prontera

Copy link
Copy Markdown

closes #848

Adds page-scoped network request overrides using Chrome DevTools Protocol request interception.

This introduces three new tools:

  • add_network_override — redirects matching requests to another URL or fulfills them using a local file.
  • list_network_overrides — lists active overrides for the selected page.
  • remove_network_override — removes an override by ID.

Overrides support CDP-style URL patterns, optional resource-type filtering, persistence across navigation/reloads, local-file rereading after rebuilds, URL allow/block policies, and safe cross-origin header handling.

Essentially, imagine being a developer working on a third-party script that runs across different websites. You want to enable the agent to test what will happen in a simulated end-user environment using your local changes before shipping them to production. This feature enables you to do that.

@marco-prontera
marco-prontera force-pushed the feat/network-request-overrides branch from 7c2cf92 to ea5bb15 Compare July 17, 2026 07:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Network Request Interception and URL Replacement

1 participant